/*
 * File    : /src/views/mark/meditor/components/MImageMarker/tools/HandlePoint.js
 * Time    : 2021-09-16 17:07:31
 * Author  : Gray Snail
 * Version : 1.0
 * Contact : shtao2011@sina.com
 * License : Copyright (c) 2021 Gray Snail
 * Desc    : None
 */

import paper from 'paper'
import { Style } from './const'

export class HandlePoint extends paper.Path {
  constructor(options) {
    super(options)
    this.markType = 'rectPoint'
    this.strokeCap = 'round'
    this.strokeColor = 'red'
    this.selectedColor = 'red'
    this.strokeScaling = false
    this.strokeWidth = Style.PointNormal
    this.closed = true
    this.visible = false
  }

  set selected(val) {
    this.fullySelected = val
    super.selected = val
  }
}

export default HandlePoint
